package com.flyco.modules.task.service;

import com.flyco.modules.oms.entity.OmsOrder;
import com.flyco.modules.oms.entity.OmsOrderItem;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @Author hui_li
 * @Date 2024/1/25 17:07
 * @Version 1.0
 */
public interface SapTaskService {

    void toSapStock(Long partnerId);

    void toSapStock(String orderId ,Long partnerId);

    Map<String, String> toSapOrder(OmsOrder order, String orderId, String userName);

    Map<String, String> toSapOrderCancel(String orderId);

    boolean closeOrder(String orderId);

    boolean revokeCloseOrder(OmsOrder order);

    void getSapFixedDiscount(OmsOrder order, OmsOrderItem item);

    void updateBalance(String storeId);

    void getSapProductPrice(Long partnerId, String storeId);

    BigDecimal getBalance(String storeId);

    void pushOrderToSap();

    void updateDealerDiscount(Long partnerId, String storeId);

    void getStatement(Long partnerId, String storeId, String year, String month);

    void autoOrderCancel();

    void updateOutStockStatus(Long partnerId, String orderId);

    void updateStoreDisabledStatus(String storeId);

    void updateOutStockStatusRedis(String s, String s1);
}
